<script>
import LeftMenu from '../components/LeftMenu'
export default {
  name: '',
  data () {
    return {
    }
  },
  methods: {
  },
  render () {
    return (
      <div id="app">
        <div class="app-header">
          <div class="header-left">
            <img class="logo" src={require('../../public/logo.png')}/>
            <div class="app-name">邮政储蓄回单打印</div>
          </div>
        </div>
        <div class="app-content">
          {this.$route.name && this.$route.name !== 'loading' ? <LeftMenu /> : null}
          <div class="content">
            <router-view />
          </div>
        </div>
        <img class="bottom-img" src={require('../../public/bottom.svg')}/>
      </div>
    )
  },
}
</script>

<style>
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: default;
  font-size: 14px;
  font-family: Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.hidden{
  display: none;
}

#app {
  height:100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#app .app-header{
  height: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding:10px 20px;
  flex-shrink: 0;
  border-bottom:1px solid #eeeeee;
  -webkit-app-region: drag;
}

.app-header .header-left{
  display: flex;
  align-items: center;
}

.header-left .logo{
  width: 16px;
  margin-right: 5px;
}

.header-left .app-name{
  font-size:12px;
  font-weight:bold;
}

.header-right .app-min,.header-right .app-close{
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  -webkit-app-region: no-drag;
}

.header-right .app-min{
  margin-right: 15px;
}

#app .app-content{
  flex:1;
  display: flex;
}

#app .app-content >.content{
  flex:1;
}

.bottom-img{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
}

*,:after,:before {
  box-sizing: border-box
}
</style>
